<?php 
      $tbl_top = new Default_Model_top();
      $lang    = $tbl_top->get_lang();
     
      
	  $ns = new Zend_Session_Namespace('lang');
	  $lang=$ns->lang;
      
	  $nss = new Zend_Session_Namespace('login');        
	
?>
     <div class="containner">
         <!-- Begin div header-->
             <div class="header">
               <!-- Begin logo-->
               <div class="logo">
                  <a href="<?php echo JURI; ?>">  <img src="imgs/logo.gif" width="390" height="92" /></a>
               </div>  
                <!-- End logo-->
                <!-- Begin Search-->
               <div class="search">
                 <div class="language">
                      <table border="0" cellpadding="4" cellspacing="0">
                          <tr>
                             <td>
                                   <a href="<?php echo  JURI.'/index/language/id/1';?>"><img src="imgs/vi.gif" width="22" height="14" /> </a>
                             </td>
                             <td>
                                   <a href="<?php echo  JURI.'/index/language/id/2';?>"><img src="imgs/en.gif" width="22" height="14" /> </a>
                             </td>
                          </tr>
                       </table>
                 </div>
                  <div class="form_search">
                   <form>
                       <table border="0" cellpadding="4" cellspacing="0">
                          <tr>
                             <td valign="top"><input type="text" value="" class="key"/>
                           <input type="submit" value="" class="button_search"/></td>
                          </tr>
                       </table>
                   </form>
                 </div>
                 
                 <div class="form_login">
                     <form  action="<?php echo JURI.'index' ?>" method="post">
                       <table border="0" cellpadding="4" cellspacing="0">
                          <tr style="<?php if ($nss->id>0) echo 'display:none'; ?>">
                             <td valign="top"><input type="text" name="user" value="" class="login_key"/></td>
                             <td valign="top"><input type="password" name="password" value="" class="login_key"/></td>
                             <td valign="top">  <input type="submit" value="<?php  if($lang==1) echo login_vn; else echo login_en; ?>" class="login_buttton"/></td>
                          </tr>
                           <tr style="<?php if ($nss->id>0) echo 'display:none'; ?>">
                             <td valign="top">
                                 <span class="label_1">
                                    <a class="register" href="<?php echo JURI.'index/forget'; ?>">
                                      <?php  if($lang==1) echo forgot_vn; else echo forgot_en; ?>
                                    </a>
                                  </span>
                              </td>
                             <td valign="top">
                               <span class="label_1">
                                 <a class="register"  href="<?php echo JURI.'index/register'; ?>"><?php  if($lang==1) echo create_vn; else echo create_en; ?>
                                 </a>
                                 </span>
                             </td>
                             <td valign="top"> </td>
                          </tr>
                          
                          
                       </table>
                   </form>
                   
                   <div style="float: right; display:<?php if($nss->id<=0) echo 'none' ; ?>">
                          <span>
                              <?php if ($lang==1) echo "Xin chào:"; else echo "Hi!"; ?>
                          </span>
                          <span class="login_title_user"><?php echo $nss->user; ?></span>
                          <span><a class="login_title" href="<?php echo JURI_BACK.'index/controlpanel/'; ?>">Admin</a></span>
                          <span><a class="login_title" href="<?php echo JURI.'index/exit'; ?>">Thoát</a></span>
                   </div>
                 
                 </div>
                 
                 
                 
               </div>
                <!-- End Search-->
             </div>
        <!-- End div header -->